package com.codeshellme.bookmanager.service;

import com.codeshellme.bookmanager.dto.UmsRole;

import java.util.List;
import java.util.Map;

public interface UmsRoleService {
    List<Map<String, Object>> queryAllRoles();

    List<Map<String, Object>> queryMenuTreeByRoleId(Integer roleId);

    int processRoleMenus(Integer roleId, Integer menuId, String menuType, Boolean checked);

    int addRole(UmsRole role);

    int updateRole(UmsRole role);

    int deleteRoleById(Integer roleId);

    // 验证角色标识是否可用
    Boolean verifyRoleSign(String roleSign);
}
